home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutor.exe
/
SOURCE
/
INTIN.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-05-15
|
533b
|
29 lines
/* Chapter 9 - Program 4 - INTIN.C */
#include "stdio.h"
void main()
{
int valin;
printf("Input a number from 0 to 32767, stop with 100.\n");
do {
scanf("%d", &valin); /* read a single integer value in */
printf("The value is %d\n", valin);
} while (valin != 100);
printf("End of program\n");
}
/* Result of execution
Input a number from 0 to 32767, stop with 100.
(The output depends on the numbers you type in.)
End of program
*/